package com.qf.blog.core.servise;

import java.util.List;

public interface IBaseService<T> {
    /*
    * 插入帖子的方法
     * @param t
     * @return
     * @throws Exception
     */
    public boolean save(T t)throws Exception;

    public boolean update(T t) throws Exception;

    public boolean remove(Integer id) throws Exception;

    /**
     * 根据id查询帖子
     * @param id
     * @return
     * @throws Exception
     */
    public T byId(Integer id) throws Exception;

    public List<T> list() throws Exception;

   public Boolean batchRemove(List<Integer> list) throws Exception;
}
